﻿@model e_commerce.Foreground.Models.Order
@{
    ViewBag.Title = "Order";
    Layout = "~/Views/Shared/_ShopMallLayout.cshtml";
}

<main class="order-continer">
    <div class="order-title">
        <h1>确认订单</h1>
    </div>
    <div class="order-address">
        <h1>收货人信息</h1>
        <div class="all-deliver-info">
            @Html.Partial("Deliver")
            <div class="add-new-deliver">
                <a href="">
                    <i class="add-new-de-i"></i>
                </a>
            </div>
        </div>
    </div>
    <div class="order-info">
        <h1>确认订单信息</h1>
        <div class="order-card">
            <div class="order-card-title">
                <span class="w50">订单明细</span>
                <span class="w10">单价</span>
                <span class="w10">数量</span>
                <span class="w10">小计</span>
                <span class="w20">配送方式</span>
            </div>
            <div class="order-message">
                <div class="order-name w50">
                    <img src="@Model.Icon" />
                    <div>@Model.GoodsName</div>
                </div>
                <div class="w10">
                    <span>￥</span>
                    <div id="price" >@Model.Price</div>
                </div>
                <div class="w10" id="count">@Model.Count</div>
                <div class="w10">￥<div class="total"></div></div>
                <div class="w20">快递配送:无运费</div>
            </div>
            <div class="order-mark">
                <div class="mark">
                    <span>备注:</span>
                    <input type="text" id="client_mark" name="ClientMark" maxlength="30" />
                </div>
                <span >合计:￥<span class="total"></span></span>
            </div>
        </div>
    </div>
    <div class="order-bill">
        <div class="order-count">
            <span>总金额</span>
            <span class="f-red total">￥59</span>
        </div>
        <div class="deliver-count">
            <span>运费</span>
            <span>￥0</span>
        </div>
        <div class="user-count">
            <span>应付</span>
            <span class="f-red total">￥59</span>
        </div>
        <div class="order-pull">
            <form method="post" action="/Page/PayOrder">
                <input type="hidden" id="deliver_name" name="DeliverName" value="@Model.DeliverName" />
                <input type="hidden" id="phonne_number" name="PhoneNumber" value="@Model.PhoneNumber" />
                <input type="hidden" id="address" name="Deliver" value="@Model.Deliver" />
                <input type="hidden" id="count" name="Count" value="@Model.Count" />
                <input type="hidden" id="goods_id" name="GoodsId" value="@Model.GoodsId" />
                <button id="submit-bt" class="order-pull-bt"type="button">
                    提交订单
                </button>
            </form>
        </div>
    </div>
</main>

@section Styles{
    <link href="~/CSS/order.css" rel="stylesheet" />
}

@section Scripts{
    <script src="~/Content/layui/layui.js"></script>
    <script src="~/JS/Order.js"></script>
}